package com.tvunetworks.center.user.model.vo;

import com.tvunetworks.center.common.model.dto.instance.ApiParam;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;

/**
 * @program: tvucc-aggregator
 * @description: User api param
 * @author Kevin_Li
 * @create: 2019-10-10 12:51
 **/

@Slf4j
@Data
public class UserApiParam extends ApiParam {


    private String email;
    private String pwd;
    private String type;
    private String sessionId;
    private String extName;
    private String extUrl;

    @Override
    public boolean paramError() {
        if (StringUtils.isBlank(requestId) || StringUtils.isBlank(appkey) || StringUtils.isBlank(timestamp) || StringUtils.isBlank(signature)) {
            log.error("ApiListGroupParam paramError requestId:[{}] appkey:[{}] timestamp:[{}] signature:[{}]", requestId, appkey, timestamp, signature);
            return true;
        }
        return false;
    }
}
